import {StrictMode} from 'react'
import {createRoot} from 'react-dom/client'
import {Provider} from 'react-redux';
import {RouterProvider} from "react-router-dom";
import router from './router'
// import store from '@/store/index'
import {getDicAll} from '@/utils/dicAll.ts'
import '@ant-design/v5-patch-for-react-19';
import 'reset-css'
import '@/assets/css/index.less'
import '@/assets/css/reset.less'
import * as _ from 'lodash'
window.lodash= _
// import App from './App.tsx'
getDicAll()

// index.js
import {PersistGate} from "redux-persist/integration/react";
import store, {persistor} from '@/store/index'

createRoot(document.getElementById('root')!).render(
    <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
            {/* 关闭严格模式 useEffect不会触发两遍 */}
            {/*<StrictMode>*/}
                <RouterProvider router={router} />
            {/*</StrictMode>*/}
        </PersistGate>
    </Provider>
)
